﻿using System;

namespace Gqq.Csharpindepth.DataStructure
{
    public class DataStructureTest
    {
        public static void DoTest()
        {
            //快速排序测试
            int[] arr = {30, 35, 1, 24, 2};
//            QuickSortClass.QuikSort(arr, 0, arr.Length - 1);

            BubbleSortClass.BubbleSort(arr);
            foreach (int i in arr)
            {
                Console.WriteLine(i);
            }

            var index=BinarySearchClass.BinarySearch(arr, 0, arr.Length - 1, 35);
            Console.WriteLine(index);
        }
    }
}
